home *** CD-ROM | disk | FTP | other *** search
-
- to compile programs in the above-indicated sub- directories/trees,
- one must load libglut. inst-able images of GLUT v3.1 are located at
- toolbox/src/exampleCode/opengl/GLUT/inst/
-
- -------------------------------------
-
- ~opengl2/examples/adv_texture README
-
- Copyright 1991-1996, Silicon Graphics, Inc.
- Technical Education Development
- All Rights Reserved.
-
- A collection of programs demonstrating some
- advanced texture mapping features in OpenGL.
-
-
- texgen.c
- Reads in a texture from a .rgb file, sets up the texture and
- the texture environment, then applies the texture to a polygon
- using automatically generated texture coordinates.
-
- <g> key - toggle between object/eye linear coordinate generation
- Escape key - exit the program
-
-
- reflection.c
- Reads in a texture from a .rgb file, sets up the texture and a
- sphere map texture environment, then applies the texture to a
- torus using shere map automatically generated texture coordinates.
-
- Escape key - exit the program
-
- tex_dlists.c: demonstrates how to put textures in display lists.
-
- This program draws four contiguous polygons. Each polygon has
- a checkerboard pattern mapped onto it. The first pair have
- appropriate borders while the second pair have no border and
- therefore blend at their edges with the assigned
- GL_TEXTURE_BORDER_COLOR.
-
- If the minification and magnification filters are set to blend
- texels, a seam will show up at the boundary between one texture
- and the next unless a border is provided on each texture which
- imitates the nearest texels of the adjacent texture map.
-
- <a> key - toggle animation on/off
- <f> key - toggle between linear/nearest filters
- Escape key - exit the program
-
-
- copy_texture.c - demonstrates the GL_EXT_texture_objects, GL_EXT_subtexture
- and GL_EXT_copy_texture extensions. It renders a grid with
- a textured rectangle in front of it. When the left mouse button is
- pressed, a 32x32 pixel area around the cursor is read as a texture
- and used to replace part of the currently bound texture on the
- rectangle.
-
- Left Mouse Button - copy pixels under cursor
- <o> key - cycle through texture objects
- Escape key - exit the program
-
- texture3D.c - simple demonstration of a 3D texture. The program displays
- the 3D texture by drawing a series of quads that slice through the
- texture coordinate space.
-
- Escape key - exit the program
-